Http://blog.csdn.net/yan11cn/article/details/5004279
Refer to the blog of Tom
Regexp objects are the objects used in VBScript to provide simple regular expressions. All attributes and methods related to regular expressions in VBScript are
Regular Expression object and Regexp object
The regular expression object is used to find the character combination mode in a string. After a regular expression object is created, it is passed to the string method, or the string is passed to a
Regular expressions
If you have not used regular expressions before, you may not be familiar with this term or concept. However, they are not as novel as you might think.
Recall how you found the file on your hard disk. Are you sure you will use it?
Regular Expression
If you have never used a regular expression, you may not be familiar with this term or concept. However, they are not as novel as you think.
Remember how to find files on the hard disk. Are you sure you want to use? And *
Yesterday in the VBS bar to see a essence of the "VBS code format Tool", is written in C + +, a district of the VBS code format, do not Labor C + + to the bar, with the VBS implementation of the VBS code format tool is not more natural?
The
Replace () is a simple replacement of characters.
ExampleCodeAs follows:
It only replaces the first letter. However, if you add a regular expression, the results will be different! Replace () supports regular expressions. It can match
This character identifies the end of the string, also known as null-terminated, which brings some trouble to scripting, especially ASP programming, and many people may ask why this special character should be retained, and we can trace it back to
Quote:
VBScript functions extract text from HTML source code
Purpose: This function is used to display the summary of an article to avoid extracting incomplete HTML tags.
Shawl. Qiu2006-7-2
Linenum
'Display plain text content (only extract
G indicates global match.M indicates that multiple rows can be matched.I indicates case-insensitive matching.^ Match the start position of the input string$ Match the end position of the input string* Match the previous subexpression zero or
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.